package com.wxtl.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.struts2.json.annotations.JSON;

/**
 * Dog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dog", catalog = "upweb")
public class Dog implements java.io.Serializable {

	// Fields

	private Integer dogId;
	private String dogversion;
	private String dogsn;
	private String agentsn;
	private String custsn;
	private Timestamp extime;
	private String proCode;
	private Timestamp actime;

	// Constructors

	/** default constructor */
	public Dog() {
	}

	/** full constructor */
	public Dog(String dogversion, String dogsn, String agentsn, String custsn, Timestamp extime,
			String proCode, Timestamp actime) {
		this.setDogversion(dogversion);
		this.dogsn = dogsn;
		this.agentsn = agentsn;
		this.custsn = custsn;
		this.extime = extime;
		this.proCode = proCode;
		this.actime = actime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "dogId", unique = true, nullable = false)
	public Integer getDogId() {
		return this.dogId;
	}

	public void setDogId(Integer dogId) {
		this.dogId = dogId;
	}

	@Column(name = "dogversion", length = 100)
	public String getDogversion() {
		return dogversion;
	}

	public void setDogversion(String dogversion) {
		this.dogversion = dogversion;
	}

	@Column(name = "dogsn", length = 50)
	public String getDogsn() {
		return this.dogsn;
	}

	public void setDogsn(String dogsn) {
		this.dogsn = dogsn;
	}

	@Column(name = "agentsn", length = 50)
	public String getAgentsn() {
		return this.agentsn;
	}

	public void setAgentsn(String agentsn) {
		this.agentsn = agentsn;
	}

	@Column(name = "custsn", length = 50)
	public String getCustsn() {
		return this.custsn;
	}

	public void setCustsn(String custsn) {
		this.custsn = custsn;
	}

	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@Column(name = "extime", length = 19)
	public Timestamp getExtime() {
		return this.extime;
	}

	public void setExtime(Timestamp extime) {
		this.extime = extime;
	}

	@Column(name = "proCode", length = 50)
	public String getProCode() {
		return this.proCode;
	}

	public void setProCode(String proCode) {
		this.proCode = proCode;
	}

	@JSON(format="yyyy-MM-dd HH:mm:ss")
	@Column(name = "actime", length = 19)
	public Timestamp getActime() {
		return this.actime;
	}

	public void setActime(Timestamp actime) {
		this.actime = actime;
	}

}